<%@ Control Language="C#" AutoEventWireup="true" CodeFile="iprelationship.ascx.cs" Inherits="fundies_controls_comments_iprelationship" %>
<%@ Register Src="Comments.ascx" TagName="Comments" TagPrefix="uc1" %>
<asp:MultiView ID="mviewRelationship" runat="server">
    <asp:View ID="viewRelationship" runat="server">
         <asp:Label runat="server" ID="lblMsg"
                Visible="false"
                Text="Changes Saved"
                EnableViewState="false" />
        <p>
            Comment left by:
            <asp:Label runat="server" ID="lblUser" />
        </p>
        <p>
            Administrative actions:<br />
            <asp:LinkButton runat="server" ID="btnBan"
                Text="Ban User" OnClick="btnBan_Click" /><br />
            <asp:LinkButton runat="server" ID="btnAnnihilate"
                Text="Annihilate Spammer" OnClick="btnAnnihilate_Click"/>
        </p>
        <p>
            Comment history:
            <asp:Repeater runat="server" ID="rptPages">
                <ItemTemplate>
                    <asp:LinkButton runat="server" ID="lnkPage"
                        Text='<%# Eval("ItemText") %>'
                        CommandArgument='<%# Eval("ItemText") %>'
                        Enabled='<%# !((bool)Eval("IsCurrentPage")) %>'
                        OnCommand="ChangePage"/>
                </ItemTemplate>
            </asp:Repeater>
            <uc1:Comments ID="Comments1" runat="server" />
        </p>
    </asp:View>
    <asp:View ID="viewError" runat="server">
        <p>
            Tracking info not found.
        </p>
    </asp:View>
</asp:MultiView>
